package com.ljf.admin.config;

/**
 * 说明：
 *
 * @Auther: lijinfeng
 * @Date: 2024/4/13
 */

import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import javax.annotation.Resource;

//@Configuration
public class MvcConfig implements WebMvcConfigurer {

    @Resource
    private TestInterceptors testInterceptors;

    @Override
    public void addInterceptors(InterceptorRegistry registry){
        registry.addInterceptor(testInterceptors).addPathPatterns("/**");
    }
}
